/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.gss.styles

/**
 *
 * @author btilford
 */
class NumericValue implements Value, Comparable {
    Unit unit
    Number value

    NumericValue plus(NumericValue operand) {value + operand.value}
    NumericValue minus(NumericValue operand) {value - operand.value}
    
    int compareTo(other) {value <=> other.value}
    String toString() {value && unit ? "$value$unit" :""}
   
}
